﻿@{
    ViewBag.Title = "_ProductPicture_List";
}

<h2>_ProductPicture_List</h2>


<table class="yt">
    <tr>
        <th>
            picture 
        </th>
        <th>
            display order
        </th>
        <th>
            
        </th>
    </tr> 
<!-- ko foreach: ProductPictures -->

    <tr>
        <td>
            <img data-bind="attr:{src: PictureUrl}" style="width:150px" /> 
        </td> 
        <td>
            <span data-bind="text:DisplayOrder"></span>
        </td>
        <td>
            <a data-bind="click:$root.DeleteProductPicture">Delete</a>
        </td>
    </tr>

    <!-- /ko -->
</table>



<a data-bind="attr:{href: '/ProductPicture/Create?productId='+Id()}">create product picture</a>
